using System; 
using System.Collections.Generic; 
using System.Text; 
using FluentNHibernate.Mapping;

namespace Zeus.Biz.DomainModel.NHib.Northwind {
    
    
    public class SalesByCategoryMap : ClassMap<SalesByCategory> {
        
        public SalesByCategoryMap() {
			Table("Sales by Category");
			LazyLoad();
			CompositeId();
			Map(x => x.CategoryID).Column("CategoryID").Not.Nullable();
			Map(x => x.CategoryName).Column("CategoryName").Not.Nullable().Length(15);
			Map(x => x.ProductName).Column("ProductName").Not.Nullable().Length(40);
			Map(x => x.ProductSales).Column("ProductSales");
        }
    }
}
